import request from "@/axios";

let baseURL = '/club/organization'

// 分页查询接口
export function listOrganization(params) {
    return request({
        url: baseURL + '/list',
        method: 'get',
        params: params
    })
}

// 查询接口
export function selectOrganization(params) {
    return request({
        url: baseURL + '/select',
        method: 'get',
        params: params
    })
}

// 删除接口
export function deleteOrganization(params) {
    return request({
        url: baseURL + '/delete',
        method: 'post',
        params: params,
    })
}

// 更新接口
export function updateOrganization(params) {
    return request({
        url: baseURL + '/update',
        method: 'post',
        data: params
    })
}

// 插入接口
export function insertOrganization(params) {
    return request({
        url: baseURL + '/insert',
        method: 'post',
        data: params
    })
}

// 批量删除接口
export function deleteBatchOrganization(params) {
    return request({
        url: baseURL + '/deleteBatch',
        method: 'post',
        data: params
    })
}

//搜索
export function searchOrganization(params) {
    return request({
        url: baseURL + '/select',
        method: 'get',
        params: params,
    })
}
